package chpt08;

import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.Charset;

public class PrintWriterTest {

	public static void main(String[] args) throws IOException{
		int a = 101;
		double b = 102.57;
		try(PrintWriter out = new PrintWriter("test.dat",Charset.forName("UTF-8"))){
			out.println("你好！");
			out.println(a);
			out.println(b);
		}
	}
}
